﻿using Book_WebAPI.Models;

namespace Book_WebAPI.Services
{
    public interface IAuthorRepository
    {
        IEnumerable<Author> GetAuthors();
        Author GetAuthor(int id);
        bool IsAuthorExists(int id);
        void AddAuthor(Author author);
        void DeleteAuthor(Author author);
        void UpdateAuthor(int id, AuthorUpdate authorUpdate);
    }
}
